Optimal. Leaf size=264 \[ \frac {a^2 f \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d^2 \sqrt {a^2+b^2}}-\frac {a^2 f \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d^2 \sqrt {a^2+b^2}}+\frac {a^2 (e+f x) \log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )}{b^2 d \sqrt {a^2+b^2}}-\frac {a^2 (e+f x) \log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )}{b^2 d \sqrt {a^2+b^2}}-\frac {a e x}{b^2}-\frac {a f x^2}{2 b^2}-\frac {f \sinh (c+d x)}{b d^2}+\frac {(e+f x) \cosh (c+d x)}{b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.49, antiderivative size = 264, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 8, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {5557, 3296, 2637, 3322, 2264, 2190, 2279, 2391} \[ \frac {a^2 f \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d^2 \sqrt {a^2+b^2}}-\frac {a^2 f \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}\right )}{b^2 d^2 \sqrt {a^2+b^2}}+\frac {a^2 (e+f x) \log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )}{b^2 d \sqrt {a^2+b^2}}-\frac {a^2 (e+f x) \log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )}{b^2 d \sqrt {a^2+b^2}}-\frac {a e x}{b^2}-\frac {a f x^2}{2 b^2}-\frac {f \sinh (c+d x)}{b d^2}+\frac {(e+f x) \cosh (c+d x)}{b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2190
Rule 2264
Rule 2279
Rule 2391
Rule 2637
Rule 3296
Rule 3322
Rule 5557
Rubi steps
\begin {align*} \int \frac {(e+f x) \sinh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx &=\frac {\int (e+f x) \sinh (c+d x) \, dx}{b}-\frac {a \int \frac {(e+f x) \sinh (c+d x)}{a+b \sinh (c+d x)} \, dx}{b}\\ &=\frac {(e+f x) \cosh (c+d x)}{b d}-\frac {a \int (e+f x) \, dx}{b^2}+\frac {a^2 \int \frac {e+f x}{a+b \sinh (c+d x)} \, dx}{b^2}-\frac {f \int \cosh (c+d x) \, dx}{b d}\\ &=-\frac {a e x}{b^2}-\frac {a f x^2}{2 b^2}+\frac {(e+f x) \cosh (c+d x)}{b d}-\frac {f \sinh (c+d x)}{b d^2}+\frac {\left (2 a^2\right ) \int \frac {e^{c+d x} (e+f x)}{-b+2 a e^{c+d x}+b e^{2 (c+d x)}} \, dx}{b^2}\\ &=-\frac {a e x}{b^2}-\frac {a f x^2}{2 b^2}+\frac {(e+f x) \cosh (c+d x)}{b d}-\frac {f \sinh (c+d x)}{b d^2}+\frac {\left (2 a^2\right ) \int \frac {e^{c+d x} (e+f x)}{2 a-2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{b \sqrt {a^2+b^2}}-\frac {\left (2 a^2\right ) \int \frac {e^{c+d x} (e+f x)}{2 a+2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{b \sqrt {a^2+b^2}}\\ &=-\frac {a e x}{b^2}-\frac {a f x^2}{2 b^2}+\frac {(e+f x) \cosh (c+d x)}{b d}+\frac {a^2 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 \sqrt {a^2+b^2} d}-\frac {a^2 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 \sqrt {a^2+b^2} d}-\frac {f \sinh (c+d x)}{b d^2}-\frac {\left (a^2 f\right ) \int \log \left (1+\frac {2 b e^{c+d x}}{2 a-2 \sqrt {a^2+b^2}}\right ) \, dx}{b^2 \sqrt {a^2+b^2} d}+\frac {\left (a^2 f\right ) \int \log \left (1+\frac {2 b e^{c+d x}}{2 a+2 \sqrt {a^2+b^2}}\right ) \, dx}{b^2 \sqrt {a^2+b^2} d}\\ &=-\frac {a e x}{b^2}-\frac {a f x^2}{2 b^2}+\frac {(e+f x) \cosh (c+d x)}{b d}+\frac {a^2 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 \sqrt {a^2+b^2} d}-\frac {a^2 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 \sqrt {a^2+b^2} d}-\frac {f \sinh (c+d x)}{b d^2}-\frac {\left (a^2 f\right ) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {2 b x}{2 a-2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b^2 \sqrt {a^2+b^2} d^2}+\frac {\left (a^2 f\right ) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {2 b x}{2 a+2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b^2 \sqrt {a^2+b^2} d^2}\\ &=-\frac {a e x}{b^2}-\frac {a f x^2}{2 b^2}+\frac {(e+f x) \cosh (c+d x)}{b d}+\frac {a^2 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 \sqrt {a^2+b^2} d}-\frac {a^2 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 \sqrt {a^2+b^2} d}+\frac {a^2 f \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 \sqrt {a^2+b^2} d^2}-\frac {a^2 f \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 \sqrt {a^2+b^2} d^2}-\frac {f \sinh (c+d x)}{b d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 2.13, size = 299, normalized size = 1.13 \[ \frac {\frac {2 a^2 \left (-2 d e \tanh ^{-1}\left (\frac {a+b \sinh (c+d x)+b \cosh (c+d x)}{\sqrt {a^2+b^2}}\right )+f \text {Li}_2\left (\frac {b (\cosh (c+d x)+\sinh (c+d x))}{\sqrt {a^2+b^2}-a}\right )-f \text {Li}_2\left (-\frac {b (\cosh (c+d x)+\sinh (c+d x))}{a+\sqrt {a^2+b^2}}\right )+f (c+d x) \log \left (\frac {b (\sinh (c+d x)+\cosh (c+d x))}{a-\sqrt {a^2+b^2}}+1\right )-f (c+d x) \log \left (\frac {b (\sinh (c+d x)+\cosh (c+d x))}{\sqrt {a^2+b^2}+a}+1\right )+2 c f \tanh ^{-1}\left (\frac {a+b \sinh (c+d x)+b \cosh (c+d x)}{\sqrt {a^2+b^2}}\right )\right )}{\sqrt {a^2+b^2}}+a (c+d x) (c f-d (2 e+f x))+2 b d (e+f x) \cosh (c+d x)-2 b f \sinh (c+d x)}{2 b^2 d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.54, size = 946, normalized size = 3.58 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (f x + e\right )} \sinh \left (d x + c\right )^{2}}{b \sinh \left (d x + c\right ) + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.14, size = 510, normalized size = 1.93 \[ -\frac {a f \,x^{2}}{2 b^{2}}-\frac {a e x}{b^{2}}+\frac {\left (d f x +d e -f \right ) {\mathrm e}^{d x +c}}{2 d^{2} b}+\frac {\left (d f x +d e +f \right ) {\mathrm e}^{-d x -c}}{2 d^{2} b}-\frac {2 a^{2} e \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d \,b^{2} \sqrt {a^{2}+b^{2}}}+\frac {a^{2} f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) x}{d \,b^{2} \sqrt {a^{2}+b^{2}}}+\frac {a^{2} f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{2} b^{2} \sqrt {a^{2}+b^{2}}}-\frac {a^{2} f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) x}{d \,b^{2} \sqrt {a^{2}+b^{2}}}-\frac {a^{2} f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{2} b^{2} \sqrt {a^{2}+b^{2}}}+\frac {a^{2} f \dilog \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right )}{d^{2} b^{2} \sqrt {a^{2}+b^{2}}}-\frac {a^{2} f \dilog \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right )}{d^{2} b^{2} \sqrt {a^{2}+b^{2}}}+\frac {2 a^{2} f c \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d^{2} b^{2} \sqrt {a^{2}+b^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {1}{2} \, {\left (4 \, a^{2} \int \frac {x e^{\left (d x + c\right )}}{b^{3} e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a b^{2} e^{\left (d x + c\right )} - b^{3}}\,{d x} - \frac {{\left (a d^{2} x^{2} e^{c} - {\left (b d x e^{\left (2 \, c\right )} - b e^{\left (2 \, c\right )}\right )} e^{\left (d x\right )} - {\left (b d x + b\right )} e^{\left (-d x\right )}\right )} e^{\left (-c\right )}}{b^{2} d^{2}}\right )} f + \frac {1}{2} \, e {\left (\frac {2 \, a^{2} \log \left (\frac {b e^{\left (-d x - c\right )} - a - \sqrt {a^{2} + b^{2}}}{b e^{\left (-d x - c\right )} - a + \sqrt {a^{2} + b^{2}}}\right )}{\sqrt {a^{2} + b^{2}} b^{2} d} - \frac {2 \, {\left (d x + c\right )} a}{b^{2} d} + \frac {e^{\left (d x + c\right )}}{b d} + \frac {e^{\left (-d x - c\right )}}{b d}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\mathrm {sinh}\left (c+d\,x\right )}^2\,\left (e+f\,x\right )}{a+b\,\mathrm {sinh}\left (c+d\,x\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________